﻿using System.Xml;

namespace octalforty.Syndication.Core
{
    /// <summary>
    /// Defines a contract for the syndication manager.
    /// </summary>
    public interface ISyndicationManager
    {
        /// <summary>
        /// Aggregates <paramref name="feedDocument"/> into <see cref="ISyndicationFeed"/>.
        /// </summary>
        /// <param name="feedDocument"></param>
        ISyndicationFeed Aggregate(XmlDocument feedDocument);

        /// <summary>
        /// Syndicates <paramref name="syndicationFeed"/> into <see cref="XmlDocument"/>.
        /// </summary>
        /// <param name="syndicationFeed"></param>
        /// <returns></returns>
        XmlDocument Syndicate(ISyndicationFeed syndicationFeed);
    }
}
